HTTP Data Read communication driver

 

HTTP Data Read communication driver is the driver to read Html file of specific html page.

 

1. Read Settings

 

<Figure 1> is read setting example of HTTP Data Read communication driver.

<Figure 1>  Read setting example of HTTP Data Read communication driver

Device part of  <Figure 1> input Device type(TCP/IP), IP address of PLC(192.168.1.10), service port of TCP/IP protocol ( fixed to 80 ),respectively.

Also you can set 'Host Name' (input string or IP address, default = ),  'Read Interval'(0 ~ 3600 second, default = 5), use of 'Reconnection Every Read Request'(0 : don't use, 1 : use, default = 0), by using option part.

 

HTTP Data Read communication driver read schedule

Read schedule setting parameters are as follows:

1) Separaet Type – 0 = 1 ~ 255 separate character number(default = 44), 1 = 1 ~ 255 data block size.

2) Start string to read – Input string data, example) DATA = , AutoWeb, ...

3) Number of skip character after start string 0 ~ 9999.

4) Save start address for Communication Server – Saving start address of Communication Server.

5) Read Size – read size.

6) Separate character number or  data block size – 1 ~ 255.

7) Page number – 0 ~ 99 page number that set the number at protocol option.

 

Note) If does not exist 'Start string', HTTP Data Read communication driver don't save the readed data.

 

Read schedule example)

READ,     0, AutoWeb,     0,    0,  10,  44,   0,

READ,     0,  FONT,    10,   20,  20,  44,   0,

READ,     1, COLOR:,     2,   50,   4,   4,   1,

 

 HTTP Data Read

communication driver store the same data in WORD, DWORD, FLOAT, STRING memory, but the data format are different.

 If you click the icon  in protocol option part, you can see the dialogue box such as <Figure 2>. you can also set read schedule by using this part.

<Figure 2> Example of   HTTP Data Read communication driver¡¯s Option dialogue box

You can set read schedule by using , , button and listbox of <Figure 2>. 

Also you can set Host name,  Read interval, use of Reconnection every read request at the part of 'Host Name',  'Read Interval', 'Reconnection Every Read Request' shown in <Figure 2>.

The part of ¡®Read Page¡¯ at <Figure 2>, you can input 'read page name' and 'page number'. ( reading max  page = 100 )

( Read Page can directly input at 'work folder\SCAN\READ_PAGE%03d.ini', %03d = port number, one page name = one line)

<Figure 3> Example of   HTTP Data Read communication driver¡¯s read schedule Add/Edit dialogue box

When you click Add button or Edit button in dialogue box of <Figure 2>, dialogue box of <Figure 3> is shown.

 

2. Writing settings

You can read html page by using write settings. (you have to set the 'read schedule')

  

Digital Write

Digital write and analog write have the same setting parameters. 

 

Analog Write

Analog write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             Don't care.

3)  ADDRESS          Don't care.

4)  Extra1                  Don't care.

5)  Extra2                  Don't care.

 

Write example 1)

PORT:0,  station:0, ADDRESS:0000, Extra1:  ,  Extra2 : 0

The setting parameter shown above is html page reading example. Readed html page data save by using 'read schedule'.